﻿//Szu
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;

namespace Global
{
    /// <summary>
    /// Wygląd kulek zjadanych przez Pacmana.
    /// </summary>
    public enum PointType { Ball = 0, Coin };
    /// <summary>
    /// Wszelkie ustawienia związane z grą.
    /// </summary>
    public class GameSettings
    {
        //Kontrola Pacmanem
        public static class PacmanControl
        {
            public static Keys up    = Controls.up;
            public static Keys down  = Controls.down;
            public static Keys left  = Controls.left;
            public static Keys right = Controls.right;
        }
        public static int pacmanIndestructibleTime = 5000;//in miliseconds
        public static int pacmanLives = 3; 

        //speed range: <0.1 ; 5f> 
        //Value over 30f is strongly prohibited!
        public static float ghostSpeed = 1.0f; 
        public static float pacmanSpeed = 4.0f;

        public static int pointsPerSmallBall = 1;
        public static int pointsPerBigBall = 5;
        public static int pointsPerGhostEaten = 10;

        public static bool isRandomGhostSpeed = true;
        public static float minRandomGhostSpeed = 0.9f;
        public static float maxRandomGhostSpeed = 1.0f;

        public static PointType pointType = PointType.Coin;

        public static float smallBallSize = 0.8f;
        public static float bigBallSize = 1.8f;

        public static float coinRotationYSpeed = 0.03f;
        public static float coinRotationXSpeed = 0.05f;

        public static bool ghostsThink = false;  //TODO: create simple AI for ghosts

        public static List<string> readyLevels;

        public static uint numberOfLevels = 0;
      
      static readonly GameSettings instance = new GameSettings();
        public static GameSettings Instance
        {
            get
            {
                return instance;
            }
        }
    }
}
